<?php
namespace Admin\Models\school;
use Admin\Models\BaseModel;
class XhschoolState extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iSSId;

    /**
     *
     * @var string
     * @Column(type="string",  nullable=true)
     */
    public $sMonth;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iTotalGrade;


    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iSchoolId;

    /**
     *
     * @var integer
     * @Column(type="integer", nullable=true)
     */
    public $bDelete;



    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;


    /**
     * 运营等级
     *
     * @var integer
     * create by xjq 20180602
     */
    public $iLevel;

    /**
     * 考核方式 (1全校 2年级)
     *
     * @var integer
     *
     * create by dale 20180928
     */
    public $iMode;

    /**
     * 年级
     * @var  string
     * create by dale 20180928
     */
    public $sGrade;


//    /**
//     * Initialize method for model.
//     */
//    public function initialize()
//    {
//        parent::initialize();
//    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSchool_State';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhschoolState[]|XhschoolState
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhschoolState
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
